package com.java.travel.dao;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description:
 * author:张腾
 * date:2021-03-08
 */
public interface BaseDao<T,K> {

    void save(T t);

    void update(T t);

    void delete(K k);

    List<T> findAll();

    T findOne(K k);

    List<T> findByPage(@Param("start") Integer start, @Param("rows") Integer rows);

    Integer findTotals();
}
